<?php
class Application_Model_DbTable_User extends Application_Model_DbTable_DomainObject{
	
	protected $_name ='uuch_user';//用户信息
	
	public function getMapper(){
		return array('id','email','nikename','realname','datecreated','password','passwordsalt','username','lastLogin','userLevel','synKey','userType','pic','state','logintimes','loginip','storeno','remark');

	}
        
        public  function getItemCount(){
            
            $db = $this->getAdapter();
            
            $result = $db->query('select count(*) from uuch_user');                
            $c = $result->fetchColumn();
            return $c;
        }
}